<%@page import="sedev.shopping.entities.ListSanPham"%>
<%@include file="../../../init.jsp" %>
<%@include file="script.jsp" %>

<div class="shopping_content">
	<div class="shopping_left_box">
		<%@include file="menu.jsp" %>
	</div>	
	<div class="shopping_right_box">
		<%@include file="search.jsp" %>
	<%
		ListSanPham listvip = (ListSanPham) request.getAttribute("listvip");
		if(listvip != null && listvip.size() > 0){
	%>
		<div class="showcase-box clearfix">
			<h3 class="clearfix">
				<liferay-ui:message key="title-product-special" />
			</h3>
			<ul style="height: 450px;" class="showcase-box-inside clearfix" id="scbm-1">
			<%
				for(int index=0; index<listvip.size(); ++index){%>
				<li class="product vip-att"> 
					<div class="pic">
						<a id="thubnail_product<%=listvip.get(index).getId()%>_special" href="<s:url action="detail"></s:url>&productId=<%=listvip.get(index).getId() %>">
						</a>
						<div id="append_thubnail_product<%=listvip.get(index).getId()%>_special" style="display:none">
							<%=listvip.get(index).getHinhAnh() %>
						</div>
						<script type="text/javascript">
							shopping.appendThumbnail('thubnail_product<%=listvip.get(index).getId()%>_special','append_thubnail_product<%=listvip.get(index).getId()%>_special');
						</script>
					</div>
					<h2 class="name-product">
						<span class="fl img-vip">&nbsp;</span>
						<a href="<s:url action="detail"></s:url>&productId=<%=listvip.get(index).getId() %>">
						<%=listvip.get(index).getTenSanPham() %>
						</a>
					</h2>
					<p class="price"><%=listvip.get(index).getGiaSanPham() %>&nbsp;<%=listvip.get(index).getDonViGia() %></p>
				</li>					
				<%}%>
			</ul>
		</div>
	<%}%>
	
	<%
		ListSanPham listnewest = (ListSanPham) request.getAttribute("listnewest");
		if(listnewest != null && listnewest.size() > 0){
	%>
		<div class="showcase-box clearfix">
			<h3 class="clearfix">
				<liferay-ui:message key="title-product-newest" />
			</h3>
			<ul style="height: 450px;" class="showcase-box-inside clearfix" id="scbm-1">
			<%
				for(int index=0; index<listnewest.size(); ++index){%>
				<li class="product vip-att"> 
					<div class="pic">
						<a id="thubnail_product<%=listnewest.get(index).getId()%>_newest" href="<s:url action="detail"></s:url>&productId=<%=listnewest.get(index).getId() %>">
						</a>
						<div id="append_thubnail_product<%=listnewest.get(index).getId()%>_newest" style="display:none">
							<%=listnewest.get(index).getHinhAnh() %>
						</div>
						<script type="text/javascript">
							shopping.appendThumbnail('thubnail_product<%=listnewest.get(index).getId()%>_newest','append_thubnail_product<%=listnewest.get(index).getId()%>_newest');
						</script>
					</div>
					<h2 class="name-product">
						<span class="fl img-vip">&nbsp;</span>
						<a href="<s:url action="detail"></s:url>&productId=<%=listnewest.get(index).getId() %>">
						<%=listnewest.get(index).getTenSanPham() %>
						</a>
					</h2>
					<p class="price"><%=listnewest.get(index).getGiaSanPham() %>&nbsp;<%=listnewest.get(index).getDonViGia() %></p>
				</li>					
			<%}%>
		</ul>
	</div>
	<%}%>
	
	
	<%
		ListSanPham listhotview = (ListSanPham) request.getAttribute("listhotview");
		if(listhotview != null && listhotview.size() > 0){
	%>
		<div class="showcase-box clearfix">
			<h3 class="clearfix">
				<liferay-ui:message key="title-product-newest" />
			</h3>
			<ul style="height: 450px;" class="showcase-box-inside clearfix" id="scbm-1">
			<%
				for(int index=0; index<listhotview.size(); ++index){%>
				<li class="product vip-att"> 
					<div class="pic">
						<a id="thubnail_product<%=listhotview.get(index).getId()%>_hotview" href="<s:url action="detail"></s:url>&productId=<%=listhotview.get(index).getId() %>">
						</a>
						<div id="append_thubnail_product<%=listhotview.get(index).getId()%>_hotview" style="display:none">
							<%=listhotview.get(index).getHinhAnh() %>
						</div>
						<script type="text/javascript">
							shopping.appendThumbnail('thubnail_product<%=listhotview.get(index).getId()%>_hotview','append_thubnail_product<%=listhotview.get(index).getId()%>_hotview');
						</script>
					</div>
					<h2 class="name-product">
						<span class="fl img-vip">&nbsp;</span>
						<a href="<s:url action="detail"></s:url>&productId=<%=listhotview.get(index).getId() %>">
						<%=listhotview.get(index).getTenSanPham() %>
						</a>
					</h2>
					<p class="price"><%=listhotview.get(index).getGiaSanPham() %>&nbsp;<%=listhotview.get(index).getDonViGia() %></p>
				</li>					
			<%}%>
			</ul>
		</div>
	<%}%>
	</div>
	<div class="clear"></div>
</div>